package com.medvalley.tcm.backend.controller;

import com.medvalley.tcm.backend.service.PushService;
import com.medvalley.tcm.base.Result;
import com.medvalley.tcm.controller.BaseController;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class PushController extends BaseController {

    @Autowired
    private PushService pushService;

    @RequestMapping("/back/article/push")
    public Result push(String headline, String link) {
        pushService.pushNewsLink(headline, link);
        return success();
    }
}
